﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ExpenseSystem.Model;
using ExpenseSystem.Lor;
using ExpenseSystem.Common;
using ExpenseSystem.DataUpdater;
using ExpenseSystem.Fether;
using ExpenseSystem.Core.DataAddOn;

namespace ExpenseSystem.Core.InformationModules
{
    public class InformationBaseManager : InformationManager
    {
        public override bool Delete(InformationModel information, out string message)
        {
            InformationFetcher fetcher = new InformationFetcher();
            return updater.Remove(information,tran,fetcher,out message);
        }

        public override bool Save(InformationModel information,out string message, params IAddable<InformationModel>[] addable)
        {
            InformationFetcher fetcher = new InformationFetcher();
            return updater.Save(information, tran, fetcher, out message);
        }
    }
}
